var cboxOptions={iframe:!0,fixed:!0,width:'95%',height:'95%',maxWidth:'1120px',maxHeight:'740px'};jQuery(window).resize(function(){jQuery.colorbox.resize({width:window.innerWidth>parseInt(cboxOptions.maxWidth)?cboxOptions.maxWidth:cboxOptions.width,height:window.innerHeight>parseInt(cboxOptions.maxHeight)?cboxOptions.maxHeight:cboxOptions.height})});jQuery(document).bind('cbox_open',function(){jQuery('body').css({overflow:'hidden'})}).bind('cbox_closed',function(){jQuery('body').css({overflow:''})});jQuery(document).ready(function(){jQuery('.embed-video').on('click',function(e){e.preventDefault();var mobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|HTC/i.test(navigator.userAgent);if(jQuery(this).data('mobile')==="newtab"&&mobile){window.open(jQuery('.embed-video').attr('href'),'_blank')}else{jQuery('.embed-video').colorbox(cboxOptions)}})})